[NOT MERGE] Repro and "fix" #362#373
Conversation
|
@dragoshomner Can you please provide some inline commentary about the changes and what/how they work? |
@alloy I added a couple of commnets to make it more clear what I did. For short, I tried to simulate what we have in People App (PA). There, we a similar scenario, where we keep the variables passed to the query (sortBy and filterBy) in some React states, and we change their values when we receive an event (in this example is As I mentioned in the chat, when we change any state, the app crashes because data is undefined in The goal, as I mentioned during the Nova sync, is to migrate to duct-tape + pagination step-by-step, to reduce the risk. The first one is to replace the old nova compiler to duct-tape compiler in 1JS and make it work in TMP. I suppose that the old code should be compatible with both compilers (the only important change being that we removed the fragment interpolation). Then, the next step would be to use Hope it helps for more context :) |
|
@dragoshomner should we close this? Or was there something that hasn't been fixed yet? |
This PR is a similar repro of the #362 issue and it shows how this problem can be fixed. However, it still should work with the directives + it still doesn't work in 1JS, so this issue might be related